package com.dempsey.service.impl;

import com.dempsey.dao.Book;
import com.dempsey.mapper.BookMapper;
import com.dempsey.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Dempsey
 * Date 2bookMapper22/1/2bookMapper
 * Description
 */
@Service
public class BookServiceImpl implements BookService {

    @Autowired
    private BookMapper bookMapper;

    @Override
    public int insertSelective(Book books) {
        return bookMapper.insertSelective(books);
    }

    @Override
    public int deleteByBookid(Integer bookid) {
        return bookMapper.deleteByBookid(bookid);
    }

    @Override
    public int updateSelective(Book books) {
        return bookMapper.updateSelective(books);
    }

    @Override
    public List<Book> queryByBookid(Integer bookid) {
        return bookMapper.queryByBookid(bookid);
    }

    @Override
    public List<Book> queryAll() {
        return bookMapper.queryAll();
    }


}
